<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=gb2312"%>


<%


				String sCurrentLine="";

				String sTotalString="";
				
				String sCurrentLine2="";

				String sTotalString2="";
				String name="";
				String pwd="";

				java.io.InputStream l_urlStream;

				java.net.URL l_url = new java.net.URL("http://jwc.njust.edu.cn:6666/pls/wwwbks/bkscjcx.login");

				java.net.HttpURLConnection l_connection = (java.net.HttpURLConnection) l_url.openConnection();

				l_connection.connect();
				
                 String username=request.getParameter("stuid");
                 String password=request.getParameter("pwd");    
		  name=username;
                  pwd=password;
                  name=request.getParameter("name");
                  pwd=request.getParameter("pwd");
                
                  java.io.InputStream l_urlStream2;
                  java.net.URL l_url2 = new java.net.URL("http://jwc.njust.edu.cn:6666/pls/wwwbks/bkscjcx.wgyykcx");
                  java.net.HttpURLConnection l_connection2 = (java.net.HttpURLConnection) l_url2.openConnection();
                  l_connection2.connect();
                  l_urlStream2 = l_connection2.getInputStream();
java.io.BufferedReader l_reader2 = new java.io.BufferedReader(new java.io.InputStreamReader(l_urlStream2));
	while ((sCurrentLine2 = l_reader2.readLine()) != null){
		 sTotalString2+=sCurrentLine2;
	
                  
                  
                  
                  
                  }
                  
                  
				 sTotalString+=sCurrentLine;
				 

				

			
				

%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <link type="text/css" rel="stylesheet" href="css/style.css">
    <base href="<%=basePath%>">
    
    <title>My JSP 'home.jsp' starting page

    </title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="in.css">
	-->
<SCRIPT src="js/jquery.min.js" type=text/javascript></SCRIPT>

<SCRIPT type=text/javascript>
$(document).ready(function() {	
	$("#menu1 li").prepend("<span></span>"); //Throws an empty span tag right before the a tag
	
	$("#menu1 li").each(function() { //For each list item...
		var linkText = $(this).find("a").html(); //Find the text inside of the a tag
		$(this).find("span").show().html(linkText); //Add the text in the span tag
	}); 
	
	$("#menu1 li").hover(function() {	//On hover...
		$(this).find("span").stop().animate({ 
			marginTop: "-40" //Find the span tag and move it up 40 pixels
		}, 250);
	} , function() { //On hover out...
		$(this).find("span").stop().animate({
			marginTop: "0" //Move the span back to its original state (0px)
		}, 250);
	});	
	
	/*	2nd example	*/
	$("#menu2 li").prepend("<span></span>"); //Throws an empty span tag right before the a tag
	
	$("#menu2 li").each(function() { //For each list item...
		var linkText = $(this).find("a").html(); //Find the text inside of the a tag
		$(this).find("span").show().html(linkText); //Add the text in the span tag
	}); 
	
	$("#menu2 li").hover(function() {	//On hover...
		$(this).find("span").stop().animate({ 
			marginTop: "-40" //Find the span tag and move it up 40 pixels
		}, 250);
	} , function() { //On hover out...
		$(this).find("span").stop().animate({
			marginTop: "0" //Move the span back to its original state (0px)
		}, 250);
	});	
});
</SCRIPT>
  </head>
  
  <body>
   <form id="form1" name="form1" method="post" action="">
  <label for="001"></label>
  <input name="001" type="text" id="001" value="教务处学号" />
   <label for="02"></label>
   <input type="password" name="02" id="02" />
  <input type="submit" name="button" id="button" value="登录" />
</form>
<hr>


  <div id="menu1">
  <ul>
	<li><a href="home.jsp">首　　 页</a></li>
	<li><a href="serv.jsp">服          务</a></li>
	<li><a href="sasion.jsp">话          题</a></li>
	<li><a href="person.jsp">个           人</a></li>
	
  </ul>
  <div class="cls"></div>
</div>

<%= sTotalString2%>
<%= name %>
<%= pwd %>

  </body>
</html>
